package com.hzw.saas.api.schedule.query;

import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Objects;

/**
 * @author hankun
 */
@Data
@Accessors(chain = true)
public class UserScheduleQuery {
    /**
     * "标题"
     */
    private String title;

    /**
     * "用户id"
     */
    private String userId;

    /**
     * "分组id"
     */
    private List<String> groupId;

    /**
     * "标签id"
     */
    private List<String> tagId;

    /**
     * "状态"
     */
    private List<Integer> status;

    /**
     * "分组名称"
     */
    private String groupName;

    /**
     * "标签名称"
     */
    private String tagName;

    /**
     * 查询时间范围类型
     */
    private LocalDateTime startTime;

    /**
     * 查询时间范围类型
     */
    private LocalDateTime endTime;

    /**
     * 删除至垃圾桶 0:正常 1:删除至垃圾桶
     */
    private Integer ashcanFlag;

    public void initAshcanFlag() {
        this.ashcanFlag = Objects.isNull(ashcanFlag) ? 0 : ashcanFlag;
    }
}
